<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>事件函数传参</title>
</head>
<body>

<div id="app">
  <button @click="say('hello Vue')">打个招呼</button>
</div>

<script src="../lib/vue.js"></script>
<script>
  let vm = new Vue({
    el: '#app',
    data: {
      msg: 'Hello World'
    },
    methods: {
      say(msg) {
        alert(msg)
      },
    }
  })
</script>


</body>
</html>